package com.cms.mapper;

import java.util.List;

import com.cms.domain.Subject;
import com.core.spring.db.DataSource;


public interface SubjectDao {

	@DataSource("cms")
	public Subject getById(String id);
	
	@DataSource("cms")
	public List<Subject> getList(Subject searchEntity);
	
	@DataSource("cms")
	public List<Subject> getListForPage(int startIndex, int size);

	@DataSource("cms")
	public void add(Subject entity);

	@DataSource("cms")
	public void update(Subject entity);

	@DataSource("cms")
	public void delete(Subject entity);

	@DataSource("cms")
	public Integer getRowCount();

}